<?php
namespace app\admin\model;
use think\Model;
class Admin extends Model
{
    
    protected $auto=['login_time','last_ip','login_count'];
    
    protected function setLoginTimeAttr()
    
    {
       return time();
    }
    protected function setLastIpAttr(){
        return request()->ip();
    }
//     protected function setLoginCountInc(){
//         return ;
//     }
    
}